package com.ruoyi.base.service;

import java.math.BigDecimal;
import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.base.domain.BaseLottery;
import com.ruoyi.base.domain.vo.LotteryVo;
import org.apache.ibatis.annotations.Param;

/**
 * 彩票基础数据Service接口
 *
 * @author szm
 * @date 2025-09-23
 */
public interface IBaseLotteryService extends IService<BaseLottery> {

    void syncLottery();

    List<LotteryVo> buyLotter(LotteryVo lotter);

    String buyLotter2(LotteryVo lotter);

    int updateBuyNo(BigDecimal buyNo, String lotteryNo, Integer lotteryType);

    BaseLottery isMaxBuyNo(BigDecimal buyNo, String lotteryNo, Integer lotteryType);

    int updateAll(Integer maxBuyNo,String lotteryType);

    void delRedis();

    LotteryVo getLastLotter();
}
